<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 
    
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>

    <script src="/resources/Scripts/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script src="/resources/Scripts/jquery.easyui.min-1.3.5.js" type="text/javascript"></script>
    <script src="/resources/Scripts/jquery.datagrid.js" type="text/javascript"></script>
    <script src="/resources/Scripts/JScriptIndex.js" type="text/javascript"></script>
	<script src="/resources/Scripts/newadd.js" type="text/javascript"></script>
    <script src="/resources/Res/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <link href="/resources/Content/Default.css" rel="stylesheet" type="text/css" />
    <link href="/resources/Content/IndexStyle.css" rel="stylesheet" type="text/css" />
    <link href="/resources/Res/easyui/themes/icon.css" rel="stylesheet" type="text/css" />
    <link href="/resources/Res/easyui/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/resources/Res/My97DatePicker/WdatePicker.js"></script>
<style type="text/css">
.biaoge {
	margin: 100px auto;
	height: 300px;
	width: 520px;
	border: 1px gray solid;
	text-align: right;
}
.td1{
    border: 0px black solid;
    width: 80px;
    height: 60px;
}
.td2{
    border: 0px black solid;
    width: 150px;
    height: 60px;
}
.td3{
    width: 70px;
    height:30px;
    line-height:30px;
    text-align: center;
     border:0;
    border-radius:15px 15px;
    box-shadow: 0 0 0 0;
    background:#f1eded;
    font-style: oblique;
}
.td4{
	text-align: center;
}
</style>

</head>
<body>

<script type='text/javascript'>
	/* function ajaxFrom() {
		//progressComm();
		$.ajax({
			url : "/dropOutIn",
			type : "post",
			data : $('#form1').serialize(),
			dataType : "json",
			success : function(result) {
				console.log(result.msg)
				if (result.msg =='OK') {
					//alert("haha");
					window.location.href = 'javascript:history.go(-2)';
					
				}

			}
		});
	} */
	function ajaxFrom() {
		$.messager.confirm('退学审批', '您确定批复吗？', function(r){
			if (r){
				$.ajax({
					url : "/updateDropStu",
					type : "post",
					data : $('#form1').serialize(),
					dataType : "json",
					success : function(result) {
						console.log(result.msg)
						if (result.msg =='OK') {
							//alert("haha");
							parent.location.reload();
							
						}

					}
				});
			}
		});
	}
	
</script>

 <form id="form1" action="#" method="post">
	<table style="width:900px;padding:10px;background:#fafafa;"    class="easyui-panel" title="退学审批">
		<tr>
		    <td class="td1"><label for="stu">学员编号</label></td>
			<td class="td2"><input type="text" id="stu" name="doStuId" readonly="readonly" value="${drop.doStuId }"></td>
		    <td class="td1"><label for="now">申请费用</label></td>
			<td class="td2"><input type="text" id="now" name="applyMoney" value="${drop.applyMoney }" readonly="readonly"></td>
	       </tr>
	       <tr>
	        <td class="td1"><label for="dang">受理人</label></td>
			<td class="td2"><input type="text" id="dang" name="manager" readonly="readonly" value="${drop.manager }"></td>
			<td class="td1"><label for="dang">学员姓名</label></td>
			<td class="td2"><input type="text" id="dang" name="doStuName" readonly="readonly" value="${drop.doStuName }"></td>
			
		</tr>
		<tr>
			<td class="td1"><label for="sex">审核金额</label></td>
			<td class="td2"><input type="text" id="sex"  name="doReplyMoney"></td>
			<td class="td1"><label for="sex">审核人</label></td>
			<td class="td2"><input type="text" id="sex"  name="checkMan" value="${sessionScope.user.userName }"></td>
		</tr>
		<tr>
			<td class="td1"><label for="sex">审核状态</label></td>
			<td class="td2"><select name="doStatus" style="width: 150px;height: 27px;">
			  <option value="">请选择</option>
			  <option value="已通过">已通过</option>
			  <option value="未通过">未通过</option>
			  
			   </select></td>
		    
		    <td class="td1"><label for="body">审核说明</label></td>
			<td class="td2"><input type="text" id="body" name="doReplyComment"></td>
		</tr>		
		<tr>
			<td class="td1"></td>
			<td class="td2 td4"><input type="button" class="td3" onclick="ajaxFrom();" value="确认退学"></td>
			<td class="td1"><input type="reset" class="td3" value="取消"></td>
			<td class="td2 td4"><input type="button" class="td3" onclick="tabClose();" value="返回"></td>
		</tr>
	</table>
	</form>
	<script type="text/javascript">
	 function tabClose() {
         parent.closeCurrTab();
     }
	</script>
</body>
</html>